
<%@ page import="com.surelution.projects.congress.Congress" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'congress.label', default: 'Congress')}" />
        <title><g:message code="default.show.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
            <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.show.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="dialog">
                <table>
                    <tbody>
                    
                    <!-- 
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="congress.id.label" default="Id" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: congressInstance, field: "id")}</td>
                            
                        </tr>
                         -->
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="congress.checkInEnd.label" default="Check In End" /></td>
                            
                            <td valign="top" class="value"><g:formatDate date="${congressInstance?.checkInEnd}" format="yyyy-MM-dd HH:mm" /></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="congress.checkInStart.label" default="Check In Start" /></td>
                            
                            <td valign="top" class="value"><g:formatDate date="${congressInstance?.checkInStart}" format="yyyy-MM-dd HH:mm" /></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="congress.description.label" default="Description" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: congressInstance, field: "description")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="congress.title.label" default="Title" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: congressInstance, field: "title")}</td>
                            
                        </tr>
                    
                    </tbody>
                </table>
            </div>
            <div class="buttons">
                <g:form>
                    <g:hiddenField name="id" value="${congressInstance?.id}" />
                    <span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
                </g:form>
            </div>
            
            
            <g:form action="saveMeeting" >
            <g:hiddenField name="congressId" value="${congressInstance?.id}" />
                <div class="dialog">
                    <table>
                        <tbody>
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="title"><g:message code="meeting.title.label" default="Title" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: meetingInstance, field: 'title', 'errors')}">
                                    <g:textField name="title" value="${meetingInstance?.title}" />
                                </td>
                            </tr>                        

                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="standing"><g:message code="meeting.standing.label" default="Standing" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: meetingInstance, field: 'standing', 'errors')}">
                                    <g:checkBox name="standing" value="${meetingInstance?.standing}" />
                                </td>
                            </tr>
                            
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="description"><g:message code="meeting.description.label" default="Description" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: meetingInstance, field: 'description', 'errors')}">
                                    <g:textArea name="description" value="${meetingInstance?.description}" />
                                </td>
                            </tr>        
                                            
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="checkInTimeStart"><g:message code="meeting.checkInTimeStart.label" default="Check In Time Start" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: meetingInstance, field: 'checkInTimeStart', 'errors')}">
                                    <g:datePicker name="checkInTimeStart" precision="minute" value="${meetingInstance?.checkInTimeStart}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="checkInTimeEnd"><g:message code="meeting.checkInTimeEnd.label" default="Check In Time End" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: meetingInstance, field: 'checkInTimeEnd', 'errors')}">
                                    <g:datePicker name="checkInTimeEnd" precision="minute" value="${meetingInstance?.checkInTimeEnd}"  />
                                </td>
                            </tr> 

                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="meetingEnd"><g:message code="meeting.meetingEnd.label" default="Meeting End" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: meetingInstance, field: 'meetingEnd', 'errors')}">
                                    <g:datePicker name="meetingEnd" precision="minute" value="${meetingInstance?.meetingEnd}"  />
                                </td>
                            </tr>
                        

                        

                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
                </div>
            </g:form>
            
            <div class="list">
                <table>
                    <thead>
                        <tr>
                        
                            <g:sortableColumn property="id" title="${message(code: 'meeting.id.label', default: 'Id')}" />
                        
                            <g:sortableColumn property="checkInTimeEnd" title="${message(code: 'meeting.checkInTimeEnd.label', default: 'Check In Time End')}" />
                        
                            <g:sortableColumn property="checkInTimeStart" title="${message(code: 'meeting.checkInTimeStart.label', default: 'Check In Time Start')}" />
                        
                            <g:sortableColumn property="description" title="${message(code: 'meeting.title.label', default: 'Description')}" />
                        
                            <g:sortableColumn property="meetingEnd" title="${message(code: 'meeting.meetingEnd.label', default: 'Meeting End')}" />
                        
                        </tr>
                    </thead>
                    <tbody>
                    <g:each in="${congressInstance.meetings}" status="i" var="meetingInstance">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                        
                            <td><g:link controller="meeting" action="show" id="${meetingInstance.id}">${fieldValue(bean: meetingInstance, field: "id")}</g:link></td>
                        
                            <td><g:formatDate date="${meetingInstance.checkInTimeEnd}" format="yyyy-MM-dd HH:mm" /></td>
                        
                            <td><g:formatDate date="${meetingInstance.checkInTimeStart}" format="yyyy-MM-dd HH:mm" /></td>
                        
                            <td>${fieldValue(bean: meetingInstance, field: "title")}</td>
                        
                            <td><g:formatDate date="${meetingInstance.meetingEnd}" format="yyyy-MM-dd HH:mm" /></td>
                        
                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>
            
        </div>
    </body>
</html>
